﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="SpecialPlanDisplany.aspx.cs"
    Inherits="SpecialPlan_SpecialPlanDisplany" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>专项计划</title>
    <link href="../App_Themes/css/main_css.css" rel="stylesheet" type="text/css" />
    <link href="../App_Themes/css/display.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        /*标黑投影显示的表格线*/
        td
        {
            border-width: 1px;
            border-color: Black;
        }
        th
        {
            border-width: 1px;
            border-color: Black;
        }
        table
        {
            border-color: Black;
        }
    </style>
    <script type="text/javascript" language="javascript">
        function Display(id) {
            var tr = document.getElementById(id);
            if (tr.style.display == "none") {
                tr.style.display = "";
            }
            else {
                tr.style.display = "none";
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td class="firstbjcolor" style="height: 14px;">
                    <span class="currentHere">当前位置:专项计划管理-&gt;查看部门专项计划</span>
                </td>
            </tr>
            <tr>
                <td style="height: 1; width: 100%;">
                </td>
            </tr>
            <tr>
                <td style="width: 100%; background-image: url(../images/secondRow.gif); background-repeat: repeat-x;">
                    <asp:DropDownList ID="drpDepartment" runat="server" AutoPostBack="True" SkinID="dropdownlistSkin"
                        OnSelectedIndexChanged="drpDepartment_SelectedIndexChanged">
                    </asp:DropDownList>
                    <asp:Button ID="btnFlow" runat="server" SkinID="buttonSkin" Text="流程" OnClick="btnFlow_Click" />
                    <asp:Button ID="btnToExcel" runat="server" OnClick="btnToExcel_Click" Text="导出Excel"
                        SkinID="buttonSkin" Width="70px" />
                    <asp:Button ID="btnModify" runat="server" OnClick="btnModify_Click" SkinID="buttonSkin"
                        Text="修改" />
                    <asp:Button ID="btnDel" runat="server" SkinID="buttonSkin" Text="删除" OnClick="btnDel_Click" />
                </td>
            </tr>
            <tr>
                <td style="width: 100%">
                    <table border="0" cellpadding="0" cellspacing="1" width="100%" style="background: Black;">
                        <tr height="27px">
                            <td style="background: #DFDEDC; width=4%" align="center">
                                选择
                            </td>
                            <td style="background: #DFDEDC; width=4%" align="center">
                                计划编号
                            </td>
                            <td style="background: #DFDEDC; width=6%" align="center">
                                开始时间
                            </td>
                            <td style="background: #DFDEDC; width=6%" align="center">
                                完成时间
                            </td>
                            <td style="background: #DFDEDC; width=14%" align="center">
                                计划名称
                            </td>
                            <td style="background: #DFDEDC; width=6%" align="center">
                                责任部门
                            </td>
                            <td style="background: #DFDEDC; width=6%" align="center">
                                责任人
                            </td>
                            <td style="background: #DFDEDC; width=6%" align="center">
                                配合部门
                            </td>
                            <td style="background: #DFDEDC; width=8%" align="center">
                                配合部门责任
                            </td>
                            <td style="background: #DFDEDC; width=6%" align="center">
                                优先级
                            </td>
                            <td style="background: #DFDEDC; width=6%" align="center">
                                评估人
                            </td>
                            <td style="background: #DFDEDC; width=8%" align="center">
                                审核意见
                            </td>
                            <td style="background: #DFDEDC; width=8%" align="center">
                                评估意见
                            </td>
                            <td style="background: #DFDEDC; width=6%" align="center">
                                附件
                            </td>
                            <td style="background: #DFDEDC; width=6%" align="center">
                                操作
                            </td>
                        </tr>
                        <asp:Repeater ID="rptSpecialPlan" runat="server" OnItemDataBound="rptSpecialPlan_ItemDataBound"
                            OnItemCommand="rptSpecialPlan_ItemCommand">
                            <ItemTemplate>
                                <tr height="27px" id="row" runat="server">
                                    <td style="width: 4%" align="center">
                                        <asp:CheckBox runat="server" ID="ckbSelect" /><%#Eval("Id") %>
                                        <asp:HiddenField runat="server" ID="HSpecialPlanId" Value='<%#Eval("Id") %>' />
                                        <asp:HiddenField runat="server" ID="HAttachmengPath" Value='<%#Eval("AttachmengPath") %>' />
                                        <asp:HiddenField runat="server" ID="Hstate" Value='<%#Eval("state") %>' />
                                    </td>
                                    <td style="width: 4%" align="center">
                                        <%#Eval("SpecialPlanSortId") %>
                                    </td>
                                    <td style="width: 6%" align="center">
                                        <%#Convert.ToDateTime(Eval("StartTime")).ToString("yyyy-MM-dd") %>
                                    </td>
                                    <td style="width: 6%" align="center">
                                        <%#Convert.ToDateTime(Eval("CompleteTime")).ToString("yyyy-MM-dd")%>
                                    </td>
                                    <td style="width: 14%; word-break: break-all; word-wrap: break-word;" align="center">
                                        <%#Eval("WorkItem") %>
                                    </td>
                                    <td style="width: 6%" align="center">
                                        <%#Eval("MasterDepartment") %>
                                    </td>
                                    <td style="width: 6%" align="center">
                                        <%#Eval("MasterPeople") %>
                                    </td>
                                    <td style="width: 6%" align="center">
                                        <%#wrapByComma(Eval("SlaveDepartment").ToString()) %>
                                    </td>
                                    <td style="width: 8%" align="center">
                                        <%#Eval("SlaveDepartmentDuty") %>
                                    </td>
                                    <td style="width: 6%" align="center">
                                        <%#Eval("PriorityLevel") %>
                                    </td>
                                    <td style="width: 6%" align="center">
                                        <%#Eval("EvaluatePeople") %>
                                    </td>
                                    <td style="width: 8%" align="center">
                                        <%#Eval("EvaluatePeopleVerifyOpinion") %>
                                    </td>
                                    <td style="width: 8%" align="center">
                                        <%#Eval("CheckNote") %>
                                    </td>
                                    <td style="width: 6%" align="center">
                                        <asp:Button ID="btnDownLoad" CommandArgument=' <%#Eval("AttachmengPath") %>' CommandName="DownLoad"
                                            runat="server" Text="下载" SkinID="buttonSkin" />
                                        <asp:Label ID="lblAlert" runat="server" Text="无附件" SkinID="labelSkin"></asp:Label>
                                    </td>
                                    <td style="width: 6%" align="center">
                                        <a onclick="javascript:Display('tr<%#Eval("Id") %>')">查看分解</a>
                                    </td>
                                </tr>
                                <tr height="27px" id='tr<%#Eval("Id") %>' style="display: none">
                                    <td align="left" colspan="16" style="background: white">
                                        <br />
                                        <table border="0" cellpadding="0" cellspacing="1" width="90%" style="background: black;">
                                            <tr height="27px">
                                                <td style="background: #DFDEDC; width: 8%" align="center">
                                                    专项分解
                                                </td>
                                                <td style="background: #DFDEDC; width: 8%" align="center">
                                                    开始时间
                                                </td>
                                                <td style="background: #DFDEDC; width: 8%" align="center">
                                                    完成时间
                                                </td>
                                                <td style="background: #DFDEDC; width: 8%" align="center">
                                                    前置任务
                                                </td>
                                                <td style="background: #DFDEDC; width: 20%" align="center">
                                                    计划名称
                                                </td>
                                                <td style="background: #DFDEDC; width: 6%" align="center">
                                                    责任部门
                                                </td>
                                                <td style="background: #DFDEDC; width: 6%" align="center">
                                                    责任人
                                                </td>
                                                <td style="background: #DFDEDC; width: 8%" align="center">
                                                    配合部门
                                                </td>
                                                <td style="background: #DFDEDC; width: 16%" align="center">
                                                    配合部门责任
                                                </td>
                                                <td style="background: #DFDEDC; width: 6%" align="center">
                                                    优先级
                                                </td>
                                                <td style="background: #DFDEDC; width: 6%" align="center">
                                                    操作
                                                </td>
                                            </tr>
                                            <asp:Repeater runat="server" ID="rptSpecialPlanDetail" OnItemDataBound="rptSpecialPlanDetail_ItemDataBound"
                                                OnItemCommand="rptSpecialPlanDetail_ItemCommand">
                                                <ItemTemplate>
                                                    <tr height="27px" id="rowdetail" runat="server">
                                                        <td style="width: 8%" align="center">
                                                            <%#Eval("SpecialPlanDetailSortId")%>
                                                            <asp:HiddenField runat="server" ID="HSpecialPlanDetailSortId" Value='<%#Eval("SpecialPlanDetailSortId")%>' />
                                                            <asp:HiddenField runat="server" ID="HSpecialPlanId" Value='<%#Eval("SpecialPlanId")%>' />
                                                            <asp:HiddenField runat="server" ID="Hstate" Value='<%#Eval("state")%>' />
                                                        </td>
                                                        <td style="width: 8%" align="center">
                                                            <%#Convert.ToDateTime(Eval("StartTime")).ToString("yyyy-MM-dd") %>
                                                        </td>
                                                        <td style="width: 8%" align="center">
                                                            <%#Convert.ToDateTime(Eval("CompleteTime")).ToString("yyyy-MM-dd")%>
                                                        </td>
                                                        <td style="width: 8%" align="center">
                                                            <%#Eval("PreposeTask")%>
                                                        </td>
                                                        <td style="width: 20%" align="center">
                                                            <%#Eval("WorkItem")%>
                                                        </td>
                                                        <td style="width: 6%" align="center">
                                                            <%#Eval("MasterDepartment")%>
                                                        </td>
                                                        <td style="width: 6%" align="center">
                                                            <%#Eval("MasterPeople")%>
                                                        </td>
                                                        <td style="width: 8%" align="center">
                                                            <%#wrapByComma(Eval("SlaveDepartment").ToString())%>
                                                        </td>
                                                        <td style="width: 16%" align="center">
                                                            <%#Eval("SlaveDepartmentDuty")%>
                                                        </td>
                                                        <td style="width: 6%" align="center">
                                                            <%#Eval("PriorityLevel")%>
                                                        </td>
                                                        <td style="width: 6%" align="center">
                                                            <asp:Button runat="server" ID="btnModify" CommandName="Modify" CommandArgument='<%#Eval("Id")%>'
                                                                Text="修改" />
                                                            <asp:Button runat="server" ID="btnDel" CommandName="Delete" CommandArgument='<%#Eval("Id")%>'
                                                                Text="删除" />
                                                        </td>
                                                    </tr>
                                                </ItemTemplate>
                                            </asp:Repeater>
                                        </table>
                                        <br />
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                    <asp:GridView ID="gdvSpecialPlan" runat="server" DataKeyNames="AttachmengPath,Id"
                        AutoGenerateColumns="False" SkinID="gridviewSkinDisplay" Width="100%" Visible="false">
                        <Columns>
                            <asp:TemplateField HeaderText="选择">
                                <ItemTemplate>
                                    <asp:CheckBox ID="ckbSelect" runat="server" />
                                </ItemTemplate>
                                <ItemStyle Width="4%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                <HeaderStyle Width="4%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="SpecialPlanSortId" HeaderText="计划编号">
                                <ItemStyle Width="4%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                <HeaderStyle Width="4%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:BoundField>
                            <asp:BoundField DataField="WorkItem" HeaderText="计划名称">
                                <ItemStyle Width="11%" Wrap="True" HorizontalAlign="Left" VerticalAlign="Middle" />
                                <HeaderStyle Width="11%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CompleteTime" HeaderText="计划完成时间" DataFormatString="{0:yyyy-MM-dd}"
                                HtmlEncode="False">
                                <ItemStyle Width="8%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                <HeaderStyle Width="8%" HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:BoundField>
                            <asp:BoundField DataField="MasterPeople" HeaderText="责任人">
                                <ItemStyle Width="6%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                <HeaderStyle Width="6%" HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:BoundField>
                            <asp:BoundField DataField="SlaveDepartment" HeaderText="配合部门">
                                <ItemStyle Width="6%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                <HeaderStyle Width="6%" HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:BoundField>
                            <asp:BoundField DataField="SlaveDepartmentDuty" HeaderText="配合部门责任">
                                <ItemStyle Width="11%" Wrap="True" HorizontalAlign="Left" VerticalAlign="Middle" />
                                <HeaderStyle Width="11%" HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:BoundField>
                            <asp:BoundField DataField="PriorityLevel" HeaderText="优先级">
                                <ItemStyle Width="10%" Wrap="True" HorizontalAlign="Left" VerticalAlign="Middle" />
                                <HeaderStyle Width="10%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:BoundField>
                            <asp:BoundField DataField="ImportantDegree" HeaderText="重要程度">
                                <ItemStyle Width="10%" Wrap="True" HorizontalAlign="Left" VerticalAlign="Middle" />
                                <HeaderStyle Width="10%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:BoundField>
                            <asp:BoundField DataField="EvaluatePeople" HeaderText="评估人">
                                <ItemStyle Width="6%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                <HeaderStyle Width="6%" HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:BoundField>
                            <asp:BoundField DataField="EvaluatePeopleVerifyOpinion" HeaderText="审核意见">
                                <ItemStyle Width="11%" Wrap="true" HorizontalAlign="Center" VerticalAlign="Middle" />
                                <HeaderStyle Width="11%" HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:BoundField>
                            <asp:BoundField DataField="CheckNote" HeaderText="评估意见">
                                <ItemStyle Width="11%" HorizontalAlign="Left" VerticalAlign="Middle" />
                                <HeaderStyle Width="11%" HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:BoundField>
                            <asp:BoundField DataField="MonthPlanId" HeaderText="id" Visible="False">
                                <ItemStyle Width="50px" />
                                <HeaderStyle Width="50px" HorizontalAlign="Center" VerticalAlign="Middle" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="附件">
                                <ItemTemplate>
                                    <asp:Label ID="lblAlert" runat="server" Visible="False" SkinID="labelSkin"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle Width="6%" Wrap="False" HorizontalAlign="Center" VerticalAlign="Middle" />
                                <HeaderStyle Width="6%" />
                            </asp:TemplateField>
                            <asp:BoundField DataField="Remart" HeaderText="备注" Visible="False">
                                <ItemStyle Wrap="False" Width="50px" />
                                <HeaderStyle Width="50px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="State" HeaderText="State" Visible="False" />
                        </Columns>
                        <PagerSettings PageButtonCount="5" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
    <input id="h1h" runat="server" type="hidden" /><input id="h2w" runat="server" type="hidden" />
    </form>
</body>
</html>
